package com.gues.controller;

import com.gues.eneity.Time;
import com.gues.service.TimeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class TimeController {
    @Resource
    TimeService timeService;

    @GetMapping("/allTime")
    public @ResponseBody List<Time> selectAllTime() {
        return timeService.selectAllTime();
    }
}
